<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blogs/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blogs/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blogs/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/blogs/images/apple-touch-icon.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/blogs/images/favicon-32x32.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/blogs/images/favicon-16x16.png?v=5.1.3">


  <link rel="mask-icon" href="/blogs/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta property="og:type" content="website">
<meta property="og:title" content="Chao&#39;s blog">
<meta property="og:url" content="https://louchaoyy.gitee.io/blogs/index.html">
<meta property="og:site_name" content="Chao&#39;s blog">
<meta property="og:locale">
<meta property="article:author" content="Chaoyxy">
<meta name="twitter:card" content="summary">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '',
    scheme: 'Gemini',
    version: '5.1.3',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://louchaoyy.gitee.io/blogs/"/>





  <title>Chao's blog</title>
  








<meta name="generator" content="Hexo 5.4.0"></head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left 
  page-home">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blogs/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Chao's blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blogs/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blogs/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blogs/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">
    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/07/13/JS%E6%9E%84%E5%BB%BA%E4%BB%A5%E5%8F%8A%E9%81%8D%E5%8E%86%E4%BA%8C%E5%8F%89%E6%A0%91/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/07/13/JS%E6%9E%84%E5%BB%BA%E4%BB%A5%E5%8F%8A%E9%81%8D%E5%8E%86%E4%BA%8C%E5%8F%89%E6%A0%91/" itemprop="url">JS构建以及遍历二叉树</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-07-13T22:13:01+08:00">
                2022-07-13
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/07/13/JS%E6%9E%84%E5%BB%BA%E4%BB%A5%E5%8F%8A%E9%81%8D%E5%8E%86%E4%BA%8C%E5%8F%89%E6%A0%91/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/07/13/JS构建以及遍历二叉树/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <h1 id="JS构建以及遍历二叉树"><a href="#JS构建以及遍历二叉树" class="headerlink" title="JS构建以及遍历二叉树"></a>JS构建以及遍历二叉树</h1><h2 id="1-二叉树的介绍"><a href="#1-二叉树的介绍" class="headerlink" title="1.二叉树的介绍"></a>1.二叉树的介绍</h2><p><strong>二叉树</strong></p>
<p>二叉树具有以下几个性质：</p>
<ol>
<li>二叉树中，第 i 层最多有 2^i-1 个结点。</li>
<li>如果二叉树的深度为 K，那么此二叉树最多有  $2^K-1$  个结点。</li>
<li>二叉树中，终端结点数（叶子结点数）为 $n_0$，度为 2 的结点数为 $n_2$，则 $n_0=n_2+1$。</li>
</ol>
<p>每个结点最多只有两个度，如下图1，图二的A结点有三个度，因此不是二叉树：</p>
<img src="/blogs/2022/07/13/JS%E6%9E%84%E5%BB%BA%E4%BB%A5%E5%8F%8A%E9%81%8D%E5%8E%86%E4%BA%8C%E5%8F%89%E6%A0%91/0.png" class title="二叉树和非二叉树">

<p><strong>满二叉树</strong>除了满足普通二叉树的性质，还具有以下性质：</p>
<ol>
<li>满二叉树中第 i 层的节点数为 2n-1 个。</li>
<li>深度为 k 的满二叉树必有 2k-1 个节点 ，叶子数为 2k-1。</li>
<li>满二叉树中不存在度为 1 的节点，每一个分支点中都两棵深度相同的子树，且叶子节点都在最底层。</li>
<li>具有 n 个节点的满二叉树的深度为 log2(n+1)。</li>
</ol>
<img src="/blogs/2022/07/13/JS%E6%9E%84%E5%BB%BA%E4%BB%A5%E5%8F%8A%E9%81%8D%E5%8E%86%E4%BA%8C%E5%8F%89%E6%A0%91/1.png" class title="满二叉树和非满二叉树">

<p><strong>完全二叉树</strong>，如果二叉树中除去最后一层节点为满二叉树，且最后一层的结点依次从左到右分布，则此二叉树被称为完全二叉树</p>
<p>左侧是一棵完全二叉树，右侧由于最后一层的节点没有按照从左向右分布，因此只能算作是普通的二叉树。</p>
<img src="/blogs/2022/07/13/JS%E6%9E%84%E5%BB%BA%E4%BB%A5%E5%8F%8A%E9%81%8D%E5%8E%86%E4%BA%8C%E5%8F%89%E6%A0%91/2.png" class title="完全二叉树和非完全二叉树">
          <!--noindex-->
          <div class="post-button text-center">
            <a class="btn" href="/blogs/2022/07/13/JS%E6%9E%84%E5%BB%BA%E4%BB%A5%E5%8F%8A%E9%81%8D%E5%8E%86%E4%BA%8C%E5%8F%89%E6%A0%91/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
          <!--/noindex-->
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/07/11/JS%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/07/11/JS%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97/" itemprop="url">JS实现队列</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-07-11T20:42:41+08:00">
                2022-07-11
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/07/11/JS%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/07/11/JS实现队列/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <p>本文读者将从以下几个方面讲述队列的JS实现</p>
<ul>
<li>什么是队列？</li>
<li>顺序队列的实现</li>
<li>链队列的实现</li>
</ul>
<p>这里不对循环队列做介绍，如果有兴趣，请自行探索</p>
<h2 id="1-什么是队列？"><a href="#1-什么是队列？" class="headerlink" title="1.什么是队列？"></a>1.什么是队列？</h2><p>队列是一种操作受限的线性表</p>
<p>队列遵循<strong>FIFO</strong>原则,即先进先出原则</p>
<p>就像我们平时排队一样，先排队的当然最先享受到服务</p>
<p>这里有几个概念需要解释</p>
<p>队首/队头：队列的首结点（元素），最先入队的元素/结点</p>
<p>队尾：队列的尾结点（元素），最后入队的元素/结点</p>
<p>入队：把新元素或者新的结点进入队列</p>
<p>出队：让队首元素出队列</p>
<p>和栈（上上篇文章详细介绍过）不一样，栈是先进后出，队列是先进先出</p>
<p>队列示意图如下图所示：</p>
<img src="/blogs/2022/07/11/JS%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97/1.png" class title="队列的结构示意图">
          <!--noindex-->
          <div class="post-button text-center">
            <a class="btn" href="/blogs/2022/07/11/JS%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
          <!--/noindex-->
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/07/10/JS%E4%BA%8B%E4%BB%B6%E5%BE%AA%E7%8E%AF%E6%9C%BA%E5%88%B6/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/07/10/JS%E4%BA%8B%E4%BB%B6%E5%BE%AA%E7%8E%AF%E6%9C%BA%E5%88%B6/" itemprop="url">JS事件循环机制</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-07-10T10:30:54+08:00">
                2022-07-10
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/07/10/JS%E4%BA%8B%E4%BB%B6%E5%BE%AA%E7%8E%AF%E6%9C%BA%E5%88%B6/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/07/10/JS事件循环机制/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <p>本文从JS对宏队列和微队列中的任务出发，详解JS的事件循环机制</p>
<h2 id="1-事件是怎么执行的？"><a href="#1-事件是怎么执行的？" class="headerlink" title="1.事件是怎么执行的？"></a>1.事件是怎么执行的？</h2><p>主线程（JavaScript引擎的线程）在运行过程中会产生一个东西叫做执行栈。而执行栈中，存在两个东西，一个叫堆，一个叫栈。堆里面存放着一些非结构化的数据或者是对象的<a target="_blank" rel="noopener" href="https://so.csdn.net/so/search?q=%E5%86%85%E5%AD%98&spm=1001.2101.3001.7020">内存</a>空间。栈里面则是当前需要执行的代码。这些执行代码调用各种 <code>api</code> (如：dom事件，<a target="_blank" rel="noopener" href="https://so.csdn.net/so/search?q=ajax&spm=1001.2101.3001.7020">ajax</a>, setTimeout，Promise等)。并往任务队列中添加各种事件，待执行栈中代码执行完毕后，会依次取出任务队列中的数据放入到执行栈中继续执行。</p>
<ul>
<li>主线程运行时，会产生执行栈（执行栈可以理解为代码运行的容器）,栈内代码执行过程中当遇到任务源时，将任务源中的回调函数加入到任务队列中</li>
<li>执行栈中的代码执行完毕后，会依次调用任务队列中的代码放入到执行栈中执行，如果反复循环。就形成了我们所说的事件循环 <code>Event loop</code></li>
</ul>
<p>针对于不同的任务，JS会把不同的任务放进相映的队列，然后依次执行</p>
<p>主要分为三大类</p>
<ul>
<li>定时器类</li>
<li>Promise类</li>
<li>同步任务类</li>
</ul>
          <!--noindex-->
          <div class="post-button text-center">
            <a class="btn" href="/blogs/2022/07/10/JS%E4%BA%8B%E4%BB%B6%E5%BE%AA%E7%8E%AF%E6%9C%BA%E5%88%B6/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
          <!--/noindex-->
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/07/09/js%E5%A4%84%E7%90%8601%E8%83%8C%E5%8C%85%E9%97%AE%E9%A2%98/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/07/09/js%E5%A4%84%E7%90%8601%E8%83%8C%E5%8C%85%E9%97%AE%E9%A2%98/" itemprop="url">js处理01背包问题</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-07-09T23:37:53+08:00">
                2022-07-09
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/07/09/js%E5%A4%84%E7%90%8601%E8%83%8C%E5%8C%85%E9%97%AE%E9%A2%98/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/07/09/js处理01背包问题/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <h2 id="1-什么是0-1背包问题？"><a href="#1-什么是0-1背包问题？" class="headerlink" title="1.什么是0-1背包问题？"></a>1.什么是0-1背包问题？</h2><p>给定n种物品和一个背包，物品i的重量是Wi，其价值为Vi，设计一个动态规划算法选择装入背包的物品，使得装入背包的物品的总价值最大。在选择装入背包的物品时，对每种物品i只有两种选择，即装入背包或不装入背包。不能将物品i装入背包多次，也不能只装入物品i的一部分。要求如下：<br>（1）输入：要求可以由用户输入物品的个数、物品的重量和相应的价值，以及背包的总容量。<br>（2）输出：背包的总价值，以及哪几个物品放入了背包。</p>
<p>注意：<strong>由于每种物品只有一个，因此如果选择装入了背包，则不能重复装入，因此未0-1背包，如果每种物品有无数个，则为完全背包，完全背包问题可以分解为0-1背包问题解答</strong></p>
<h2 id="2-暴力递归"><a href="#2-暴力递归" class="headerlink" title="2.暴力递归"></a>2.暴力递归</h2><p>如何使用递归？</p>
<p>什么是递归？</p>
<p>斐波拉契数列</p>
<p>汉诺塔</p>
<h2 id="3-动态规划处理"><a href="#3-动态规划处理" class="headerlink" title="3.动态规划处理"></a>3.动态规划处理</h2><p>什么是动态规划？</p>
<p>如何剪枝？</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/07/08/js%E5%AE%9E%E7%8E%B0%E6%A0%88-%E9%A1%BA%E5%BA%8F%E6%A0%88%E5%92%8C%E9%93%BE%E6%A0%88/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/07/08/js%E5%AE%9E%E7%8E%B0%E6%A0%88-%E9%A1%BA%E5%BA%8F%E6%A0%88%E5%92%8C%E9%93%BE%E6%A0%88/" itemprop="url">js实现栈-顺序栈和链栈</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-07-08T22:19:29+08:00">
                2022-07-08
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/07/08/js%E5%AE%9E%E7%8E%B0%E6%A0%88-%E9%A1%BA%E5%BA%8F%E6%A0%88%E5%92%8C%E9%93%BE%E6%A0%88/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/07/08/js实现栈-顺序栈和链栈/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <h2 id="1-什么是栈？"><a href="#1-什么是栈？" class="headerlink" title="1.什么是栈？"></a>1.什么是栈？</h2><p>栈是一种遵从<strong>先进后出（FILO）</strong>原则的有序集合</p>
<p>新添加或者待删除的元素都保存在栈顶，另一端就叫做栈底。</p>
<p>在栈里，新元素都靠近栈顶，旧元素都接近栈底</p>
<h2 id="2-栈的种类？"><a href="#2-栈的种类？" class="headerlink" title="2.栈的种类？"></a>2.栈的种类？</h2><ul>
<li>顺序栈（数组实现，可能出现栈满的情况）</li>
<li>链栈（类链表实现，不会出现栈满的情况）</li>
</ul>
<p>因为顺序栈用数组实现，必须事先确定栈的大小，对内存的使用效率并不高，无法避免因数组空间用光而引起的溢出问题；而链栈因为动态申请内存，一般不会出现栈满情况，空栈还是会出现的。</p>
<p>而因为链栈和顺序栈都是栈，栈先进后出，只能在栈顶进行插入和删除操作，所以链栈在插入和删除操作上对于顺序栈并无优势</p>
          <!--noindex-->
          <div class="post-button text-center">
            <a class="btn" href="/blogs/2022/07/08/js%E5%AE%9E%E7%8E%B0%E6%A0%88-%E9%A1%BA%E5%BA%8F%E6%A0%88%E5%92%8C%E9%93%BE%E6%A0%88/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
          <!--/noindex-->
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/07/07/js%E5%AE%9E%E7%8E%B0%E5%8D%95%E9%93%BE%E8%A1%A8/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/07/07/js%E5%AE%9E%E7%8E%B0%E5%8D%95%E9%93%BE%E8%A1%A8/" itemprop="url">js实现单链表</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-07-07T18:54:49+08:00">
                2022-07-07
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/07/07/js%E5%AE%9E%E7%8E%B0%E5%8D%95%E9%93%BE%E8%A1%A8/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/07/07/js实现单链表/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <p>阅读本文，你能了解到什么？</p>
<p>笔者将从 <strong>链表的简介、单链表相对于数组的优点、怎么创建单链表、如何对单链表进行操作、以及代码实现和分析</strong>以下几个方面对链表进行分析，附上源代码，在文章末尾。</p>
<h2 id="1-什么是单链表？"><a href="#1-什么是单链表？" class="headerlink" title="1.什么是单链表？"></a>1.什么是单链表？</h2><p>单链表是一种链式存取的数据结构，用一组地址任意的存储单元存放线性表中的数据元素。链表中的数据是以结点来表示的，每个节点的构成：（元素+指针） 元素就是存储数据的存储单元，指针就是连接每个节点的地址数据。</p>
<p>单链表是由一个一个的结点组成的，<strong>可以看成是单链表是手拉手的一群孩子，每个结点就是每个孩子，手就是next指针</strong></p>
<p>单链表的一个结点是这样的</p>
<img src="/blogs/2022/07/07/js%E5%AE%9E%E7%8E%B0%E5%8D%95%E9%93%BE%E8%A1%A8/0.png" class title="结点的结构">

<p>单链表最基本的数据结构如下:</p>
<img src="/blogs/2022/07/07/js%E5%AE%9E%E7%8E%B0%E5%8D%95%E9%93%BE%E8%A1%A8/1.png" class title="单链表的结构">

<h2 id="2-单链表的优点"><a href="#2-单链表的优点" class="headerlink" title="2.单链表的优点"></a>2.单链表的优点</h2><ul>
<li><p>物理上不连续，但是逻辑上是连续的</p>
</li>
<li><p>任意位置插入删除时间复杂度为**O(1)**。</p>
</li>
<li><p>没有增容问题，插入一个开辟一个空间。</p>
</li>
</ul>
          <!--noindex-->
          <div class="post-button text-center">
            <a class="btn" href="/blogs/2022/07/07/js%E5%AE%9E%E7%8E%B0%E5%8D%95%E9%93%BE%E8%A1%A8/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
          <!--/noindex-->
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/07/01/pinia%E7%9A%84%E4%BD%BF%E7%94%A8/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/07/01/pinia%E7%9A%84%E4%BD%BF%E7%94%A8/" itemprop="url">pinia的使用</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-07-01T21:59:54+08:00">
                2022-07-01
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/07/01/pinia%E7%9A%84%E4%BD%BF%E7%94%A8/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/07/01/pinia的使用/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            
          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/06/29/Vuex%E7%9A%84%E4%BD%BF%E7%94%A8/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/06/29/Vuex%E7%9A%84%E4%BD%BF%E7%94%A8/" itemprop="url">Vuex的使用</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-06-29T22:38:21+08:00">
                2022-06-29
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/06/29/Vuex%E7%9A%84%E4%BD%BF%E7%94%A8/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/06/29/Vuex的使用/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <p><strong>本文将从以下几个方面描述Vuex</strong></p>
<ul>
<li>vuex是什么？</li>
<li>为什么要用vuex?</li>
<li>vuex能帮我们解决什么问题？</li>
<li>vuex怎么用？</li>
</ul>
<p><strong>其中最后一条是重中之重，如何使用vuex</strong></p>
<h2 id="1-vuex是什么？"><a href="#1-vuex是什么？" class="headerlink" title="1.vuex是什么？"></a>1.vuex是什么？</h2><p><strong>vuex是实现组件全局状态（数据）管理的一种机制，可以方便的实现组件之间的数据共享</strong></p>
<p>vuex具有如下几个核心组件</p>
<ul>
<li><strong>state: 提供公共数据源，所有的共享数据都要统一放到store里的state中</strong></li>
<li><strong>Mutation: 用于变更store中的数据</strong><ol>
<li> <strong>只能通过mutation去操作和变更store中的数据，不可以直接操作store中的数据</strong></li>
<li> <strong>通过这种方式虽然繁琐一点，但是可集中监控所有数据的变化</strong></li>
</ol>
</li>
<li><strong>module:</strong></li>
<li><strong>action: 可以在这里执行异步任务，但是需要在action中通过触发mutation的方式间接的执行异步操作数据</strong></li>
<li><strong>getter: 用于对store的数据进行加工处理形成新的数据</strong></li>
</ul>
<h2 id="2-为什么要用vuex"><a href="#2-为什么要用vuex" class="headerlink" title="2.为什么要用vuex?"></a>2.为什么要用vuex?</h2><p><strong>组件之间传值：</strong></p>
<ul>
<li><p>父向子传值：v-bind属性绑定</p>
</li>
<li><p>子向父传值：v-on事件绑定</p></li></ul>
          <!--noindex-->
          <div class="post-button text-center">
            <a class="btn" href="/blogs/2022/06/29/Vuex%E7%9A%84%E4%BD%BF%E7%94%A8/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
          <!--/noindex-->
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/06/28/vue%E7%BB%84%E4%BB%B6%E4%B9%8B%E9%97%B4%E7%9A%84%E4%BC%A0%E5%80%BC/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/06/28/vue%E7%BB%84%E4%BB%B6%E4%B9%8B%E9%97%B4%E7%9A%84%E4%BC%A0%E5%80%BC/" itemprop="url">vue组件之间的传值</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-06-28T22:24:00+08:00">
                2022-06-28
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/06/28/vue%E7%BB%84%E4%BB%B6%E4%B9%8B%E9%97%B4%E7%9A%84%E4%BC%A0%E5%80%BC/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/06/28/vue组件之间的传值/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <h1 id="vue组件之间的传值"><a href="#vue组件之间的传值" class="headerlink" title="vue组件之间的传值"></a>vue组件之间的传值</h1><p>vue组件之间的传值一共有三种，分别是</p>
<ul>
<li>父组件向子组件传值</li>
<li>子组件向父组件传值</li>
<li>兄弟组件之间的传值</li>
</ul>
<p>接下来笔者就从这三种传值方式中进行介绍</p>
<h2 id="1-父组件向子组件传值"><a href="#1-父组件向子组件传值" class="headerlink" title="1.父组件向子组件传值"></a>1.父组件向子组件传值</h2><p>父组件和子组件怎么区分？</p>
<p>我引用了你，我就是父组件，谁包含谁？</p>
<p>包含的是父组件，被包含的是子组件，谁范围大谁是父组件</p>
<p>示意图如下：</p>
<img src="/blogs/2022/06/28/vue%E7%BB%84%E4%BB%B6%E4%B9%8B%E9%97%B4%E7%9A%84%E4%BC%A0%E5%80%BC/1.png" class title="父子组件之间的关系">

<p><strong>原理</strong>：</p>
<p>父组件向子组件传值的原理就是通过<strong>v-bind</strong>去进行数据绑定</p>
          <!--noindex-->
          <div class="post-button text-center">
            <a class="btn" href="/blogs/2022/06/28/vue%E7%BB%84%E4%BB%B6%E4%B9%8B%E9%97%B4%E7%9A%84%E4%BC%A0%E5%80%BC/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
          <!--/noindex-->
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/06/26/axios%E4%BD%BF%E7%94%A8%E5%8F%8A%E5%85%B6%E9%85%8D%E7%BD%AE/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blogs/2022/06/26/axios%E4%BD%BF%E7%94%A8%E5%8F%8A%E5%85%B6%E9%85%8D%E7%BD%AE/" itemprop="url">axios使用及其配置</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-06-26T22:42:30+08:00">
                2022-06-26
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/06/26/axios%E4%BD%BF%E7%94%A8%E5%8F%8A%E5%85%B6%E9%85%8D%E7%BD%AE/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/06/26/axios使用及其配置/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <h2 id="本文将从以下几个方面描述axios"><a href="#本文将从以下几个方面描述axios" class="headerlink" title="本文将从以下几个方面描述axios"></a>本文将从以下几个方面描述axios</h2><ul>
<li>axios是什么？</li>
<li>axios怎么用？</li>
<li>axios怎么配置 ？</li>
<li>axios请求拦截器和响应拦截器配置</li>
<li>封装属于自己的axios请求</li>
</ul>
<h2 id="1-axios是什么？"><a href="#1-axios是什么？" class="headerlink" title="1. axios是什么？"></a>1. axios是什么？</h2><p>axios时目前最流行的Ajax封装库之一，用于很方便地实现Ajax请求的发送</p>
<p><strong>支持的功能：</strong></p>
<ul>
<li>从浏览器发出 XMLHttpRequests请求。</li>
<li>从 node.js 发出 http 请求。</li>
<li>支持 Promise API。</li>
<li>能拦截请求和响应。</li>
<li>能转换请求和响应数据。</li>
<li>取消请求。</li>
<li>实现JSON数据的自动转换。</li>
<li>客户端支持防止 XSRF攻击。</li>
</ul>
<h2 id="2-axios怎么用？"><a href="#2-axios怎么用？" class="headerlink" title="2. axios怎么用？"></a>2. axios怎么用？</h2><ul>
<li>首先是安装axios</li>
</ul>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install axios --save</span><br></pre></td></tr></table></figure>

<p><strong>最简单的用法</strong></p>
          <!--noindex-->
          <div class="post-button text-center">
            <a class="btn" href="/blogs/2022/06/26/axios%E4%BD%BF%E7%94%A8%E5%8F%8A%E5%85%B6%E9%85%8D%E7%BD%AE/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
          <!--/noindex-->
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
  </section>

  
  <nav class="pagination">
    <span class="page-number current">1</span><a class="page-number" href="/blogs/page/2/">2</a><span class="space">&hellip;</span><a class="page-number" href="/blogs/page/5/">5</a><a class="extend next" rel="next" href="/blogs/page/2/">&lt;i class&#x3D;&quot;fa fa-angle-right&quot;&gt;&lt;&#x2F;i&gt;</a>
  </nav>



          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      

      <section class="site-overview-wrap sidebar-panel sidebar-panel-active">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/blogs/images/cat.jpg"
                alt="" />
            
              <p class="site-author-name" itemprop="name"></p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blogs/archives">
              
                  <span class="site-state-item-count">43</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/blogs/tags/index.html">
                  <span class="site-state-item-count">10</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://gitee.com/louchaoyy" target="_blank" title="Gitee">
                      
                        <i class="fa fa-fw fa-gitee"></i>Gitee</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="louchao@louchaoyy.cn" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="copyright">&copy; <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Chaoyxy</span>

  
</div>

<span id="busuanzi_container_site_pv">
    本站总访问量<span id="busuanzi_value_site_pv"></span>次
</span>
<!--

  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.3</div>
-->




        







        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/blogs/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/blogs/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/blogs/js/src/motion.js?v=5.1.3"></script>



  
  


  <script type="text/javascript" src="/blogs/js/src/affix.js?v=5.1.3"></script>

  <script type="text/javascript" src="/blogs/js/src/schemes/pisces.js?v=5.1.3"></script>



  

  


  <script type="text/javascript" src="/blogs/js/src/bootstrap.js?v=5.1.3"></script>



  


  

    
      <script id="dsq-count-scr" src="https://Chaoyxy.disqus.com/count.js" async></script>
    

    

  




	





  














  





  

  

  

  
  

  

  

  

</body>
</html>
